import random
from django.core.mail import send_mail


def send_JKChat_mail(email, name, verify, time):
    '''发送激活邮件and 修改密码'''
    subject = 'JKChat 验证码'
    message = 'test1'
    sender = '1785662113@qq.com'
    recever = [email,]

    html_message = '<h1>亲爱的%s用户欢迎来到JKChat%s页面，您的验证码为：%s, 有效时间为%ss' % (email, name, verify, time)


    send_mail(subject, message, sender, recever, html_message=html_message)


